#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class VoteRecordDetail : Business.BusinessBase<VoteRecordDetail, int>
	{
		#region Fields and Properties

		private int voteAnswerID = 0;
		/// <summary>
		/// 
		/// </summary>
		public int VoteAnswerID
		{
			get { return voteAnswerID; }
			set
			{
				if (value != voteAnswerID)
				{
					MarkChanged("VoteAnswerID");
					voteAnswerID = value;
				}
			}
		}

		private int voteItemID = 0;
		/// <summary>
		/// 
		/// </summary>
		public int VoteItemID
		{
			get { return voteItemID; }
			set
			{
				if (value != voteItemID)
				{
					MarkChanged("VoteItemID");
					voteItemID = value;
				}
			}
		}

		private int voteRecordID = 0;
		/// <summary>
		/// 
		/// </summary>
		public int VoteRecordID
		{
			get { return voteRecordID; }
			set
			{
				if (value != voteRecordID)
				{
					MarkChanged("VoteRecordID");
					voteRecordID = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public VoteRecordDetail()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override VoteRecordDetail DataSelect(int id)
		{
			return Services.DALService.VoteRecordDetailService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.VoteRecordDetailService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.VoteRecordDetailService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.VoteRecordDetailService.Delete(this);
		}

		#endregion Base overrides
	}
}
